#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @File  : 4.使用装饰器定位bug.py
# @Author: Micah
# @Func  : 用于
# @Time  : 2023/11/14

def debug(func):
    def wrapper():
        print(f'[DEBUG: enter{func.__name__}]')
        return func()

    return wrapper


@debug  # debug_say_hello = debug(say_hello)
def say_hello():
    print('hello!')


say_hello()
